trigger watchdog before calling usb_gadget_handle_interrupts()
This prevents board resets when calling dfu command on boards
which have a watchdog.
Signed-off-by: Heiko Schocher <[email protected]>
[ Reedition by Lukasz Majewski <
[email protected]> to apply to
v2014.04 release ]
*/
#include <common.h>
+#include <watchdog.h>
#include <dfu.h>
#include <g_dnl.h>
#include <usb.h>
if (ctrlc())
goto exit;
+ WATCHDOG_RESET();
usb_gadget_handle_interrupts(controller_index);
}
exit: